package com.berchen.数据结构.队列;

public class RingsArrayQueueTest {
    public static void main(String[] args) {
        RingsArrayQueue queue = new RingsArrayQueue(3);
        System.out.println(queue.add(1));
        System.out.println(queue.add(2));
        System.out.println(queue.add(3));
        queue.list();

        System.out.println(queue.get());

        System.out.println(queue.remove());

        queue.list();
        queue.add(4);
        queue.list();

    }
}
